<?php


namespace Modules\Common\Helpers\Traits\QueryBuilder;


trait Sorts {
    protected $qb;

    protected function aSorts($sorts = []) {
        $this->qb = $this->qb->allowedSorts(array_merge([
                                                            'id', 'created_at', 'updated_at', 'sort',
                                                            'sale_proportion', 'code', 'organization_proportion',
                                                            'on_sale', 'category_id', 'nursery_school_id', 'uid',
                                                            'week', 'course_id',
                                                        ], $sorts));
        return $this;
    }
}
